{% extends 'base.html' %}
{% load crispy_forms_tags %}

{% block title %}编辑收藏备注 - 旅游舆情监测{% endblock %}

{% block content %}
<div class="container">
    <div class="row">
        <div class="col-md-6 col-md-offset-3">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">编辑收藏备注</h3>
                </div>
                <div class="panel-body">
                    <div class="attraction-info mb-4">
                        <h5>景点：{{ object.attraction.name }}</h5>
                        <p class="text-muted">{{ object.attraction.location }}</p>
                    </div>
                    
                    <form method="post">
                        {% csrf_token %}
                        {{ form|crispy }}
                        <div class="form-group">
                            <button type="submit" class="btn btn-primary">保存备注</button>
                            <a href="{% url 'collect:my_collections' %}" class="btn btn-default">取消</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}